package com.itheima.service;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import java.util.Set;

public interface PermissionService {
    Set<Permission> findAll();

    //分页查询
    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    //编辑权限前回写数据
    public Permission findById(Integer id);

    //编辑权限
    public void edit(Permission permission);

    void add(Permission permission);

    void delete(Integer id);

    Permission findPermissionByKeyword(String keyword);
}

